# -*- coding: utf-8 -*-
# @Time    : 2025/4/20 下午9:04
# @Author  : yqk
# @File    : 网易云.py
# @Software: PyCharm

import requests
headers = {
    "accept": "*/*",
    "accept-language": "zh-CN,zh;q=0.9",
    "content-type": "application/x-www-form-urlencoded",
    "origin": "https://music.163.com",
    "priority": "u=1, i",
    "referer": "https://music.163.com/",
    "sec-ch-ua": "\"Google Chrome\";v=\"135\", \"Not-A.Brand\";v=\"8\", \"Chromium\";v=\"135\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin",
    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"
}
cookies = {
    "timing_user_id": "time_heN1oizJO4",
    "NMTID": "00OPE_CLsdHc2EckkzJipCbamK8QAMAAAGWU0hcBg",
    "JSESSIONID-WYYY": "U%2Bn3Ot8n5qMgmcWgeqs%5Ck45fQYKRVZXsk3XxfDW13sGeqB3WVh3XgMINfH%2B4Rd1PfNMsj1On%2BThKtmfUEzCrbMigRGDdCUjNPUvFk%2BC7x60o5bBeK7AwjVw1Ge7b72%2F5XKSfAYqfB%2BE8V%2BnpTqTAncq6kxF8OCK0vPwYEP8mYuSVWY16%3A1745155773832",
    "_iuqxldmzr_": "32",
    "_ntes_nnid": "7660e78f719cdf85688dc563448484c8,1745153973859",
    "_ntes_nuid": "7660e78f719cdf85688dc563448484c8",
    "WEVNSM": "1.0.0",
    "WNMCID": "csdxeb.1745153975038.01.0",
    "__snaker__id": "DOHLSZqRKjUhwa5K",
    "ntes_utid": "tid._.PUDGeYOn2UFFFxEQAFPTPXYfZcFpJ8O1._.0",
    "sDeviceId": "YD-w9fsqE2%2B9RNAF0ARUVeWPWMPNYV4YoKi",
    "WM_NI": "8xGrQnf1s0dhzMDPbZAjq4vXpr7F%2FKSagExzPgciB7vb52FMVpXWMS1PogX9W%2BJp1AG0FcJZ0a5D55i3fTzWaWUdcjbu5NBQ%2BaO2Yoy4Aih62sLlB8QSLzX53gw0XcAUUEY%3D",
    "WM_NIKE": "9ca17ae2e6ffcda170e2e6eebad765aee8af91ee48a3ef8ab3d45b839b8a83db418c86ae85e74afbbdbf8ddb2af0fea7c3b92afca88993d466a6efbdd1e764ba938cb1e15283b6bfd5f554b4aef9a7ae4191bfa9a6fb7294b9ad8ac13db6befbd3c54796b098b8d059f390a188db3395f58691b44b85f08a84c952f4bffba5b83fabedaab5f95da3899b85e262a2abfbafc15be9bf81d3dc65bbec8f8aeb3ef2ad848dc134938d849bdb3ff1b9b9d1db69838b9ba6dc37e2a3",
    "WM_TID": "HTzlys2ViChEQFAUERLXKDZPJYR4N9dq",
    "gdxidpyhxdE": "bQfDV%5CyxSes9MNDM0V4xzewfc6RhlkZxtOa%2FOE8jEQ1gfG6JkEbbdqOTzoYosvEfIun%5CKb%2FPAgIy0L1XS6Blc7Jo34zAjEmj12WADTEp5AAk8D6HLG0i%5C3lwTfhTWekjDfxMlzv7CE9y44XPtd8CeLhuj%2Fk9lQeJbyeApIpqbfXayDHW%3A1745154876529",
    "NTES_YD_SESS": "snEkZQ45pe2P3C4DtfdKk8tuYWxTw.5DOdC9fY23fIEa8Ftg8d_0OTtAFVzCCgISFIkjTo26Y68tC9idmTZHwU3cl036YvyLJPeGwNdK.EOg3XAAPhkoOU7PP0BNgI8OWLPYLylOQaj.amXhcVg.3Iyi1Gxu5abBChhaYF7IV1MWmOrGHxmSZqkmc3Vj_vJ_0pwvoVo2aAwQlUC4RAwdhicqPrJDZHc0hx7MgBqpvwNX.",
    "S_INFO": "1745154009|0|0&60##|14780197596",
    "P_INFO": "14780197596|1745154009|1|music|00&99|null&null&null#sic&510100#10#0|&0||14780197596",
    "MUSIC_U": "00C13299690671A7AAA88BA4BE2C24D59655103D3ED621D60A2F1C984C9E700164001E4E3AADC10AEA17C54BF693FDCB6AC65ED6A0074A74EE67CC0F39E02C72A7FBD9E39B2996C027E174093583A28B4AA23F832E371D9B35784A95A2B06A7608F8AE13494C6FD241EBA106B21A387230142C87545225FDFF2E88BC4944425985CFEFBA7938789CFB6D3825298CBD85F3CCB7D59680DB1C3B2DED22653D0F2DCAC4CBE59E6AAD005C6B14F3095FC1E43A4F2BD73A9E4D4D62AEAB55EC4EC0843AC3C6E6E2EBB80B78213ED64C841D5E9684E80E95C08695AF12299736B5BC5FBB87CE1A2CCE2F28182DAC5FE6119AC76318C9A261DC164094FE20121AEDD642B40A523A7021BE87C957B726ED7CDC9A006C236F114F307B1D89F0CA8D2EF2885EF4CA2FC6B7A18D353F5B1F46ACBA8DC2E64779A1D72EAC3D50BDAEF11E166D56C3B42908F9B95C5347D6F56333A5C0BAB07FDC680EBB1F4C26F1746F97F05648",
    "__csrf": "43cb59dce7efb172b2671572e2ab5f98",
    "__remember_me": "true",
    "ntes_kaola_ad": "1",
    "playerid": "20491247"
}
url = "https://music.163.com/weapi/song/enhance/player/url/v1"
params = {
    "csrf_token": "43cb59dce7efb172b2671572e2ab5f98"
}
data = {
    "params": "BxL5eo7u7fwEi5zX9AmTS0eECKqAYNh6QoY4ZU4/3U2xsokw7r9EWnA4A03Hzg/NGGFng19GoO6e0yufYKjLcU2q29VRSvoc3/ynhlu9VOn2zPOrlIHN/CcvNdWlbBAl7q/tbANq2+MZyKQX42XXYyfFnP0qw2n+MRSYeuD1QlFaRbWK4QdAgZCCPwuHFDUvwNyNP5WCAlvNT2fJib3eCA==",
    "encSecKey": "3d6c07f3c1b855f04d04197f41c029b1f29b5ce03c13df87e7d7537ea9097c4a9356363951efc9dceb6209dfee4e110158245e74ae72e9a045e4b0bb17beae6b2a1ef8bfa42c4aa65240c22aabac1624ed26da4677724c7d836d8fc1672e802946b0b2a3f87b0ba19fdb20b627ac820c2524a776c6bb80d6954c2f39f02b2e37"
}
response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data)

print(response.text)